import { Controller } from 'egg';

export default class HomeController extends Controller {
  public async index() {
    const { ctx, service } = this;

    const list = await service.news.getnewsList();
    await ctx.render('index', {
      list,
    });
  }

  public async xxx() {
    const { ctx } = this;

    ctx.body = 'xxx';
  }
}
